<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML>
<?php
session_start();
if ((!empty($_GET['logout'])) && ($_GET['logout'] == '1')) {
	unset($_SESSION['USER_ID'], $_SESSION['USERNAME'], $_SESSION['USERGRP']);
}
?>
<head>
	<?PHP
		if (empty($title_msg)) {
			$title_msg = "EEBS";
		}
	?>
	<TITLE><?PHP echo $title_msg; ?></TITLE>
</head>

<BODY BGCOLOR="#FFFFFF">
<TABLE BORDER="0" CELLPADDING="5" WIDTH="100%">
	<!-- Title box -->
	<TR WIDTH="100%" BGCOLOR="#106040">
		<TD WIDTH="100%" ALIGN="center" COLSPAN="2">
			<?PHP
				if (!empty($_SESSION['USER_ID'])){
			?>
				<A HREF="mypage.php"><?PHP echo $_SESSION['USERNAME']; ?></A>
				<A HREF='./index.php?logout=1'>logout</A>
			<?php
				}

				if (empty($header_msg)) {
					$header_msg = "EEBS";
				}
			?>
			<H1><?php echo $header_msg; ?></H1>
			<?PHP
/*				if (!empty($_SESSION['USER_ID'])){
					echo $_SESSION['USERNAME'];

			?>
			<A HREF='./index.php?logout=1'>logout</A>
			<?php
				}
//*/			?>
		</TD>
	</TR>
	<!-- End Title box -->

	<!-- Begin main body -->
	<TR WIDTH="100%">
		<TD WIDTH="10%" VALIGN="top" ALIGN="right" BGCOLOR="#956952">
		<!-- Navbar -->
			<P CLASS="sidebar"><A HREF="index.php">Home</A></P>
<?php
	if (!empty($_SESSION['USER_ID'])){
		echo '<P CLASS="sidebar"><A HREF="newblogentry.php">New Entry</A></P>';
		echo '<P CLASS="sidebar"><A HREF="mypage.php">My Page</A></P>';
	}
	else {
	echo '<P CLASS="sidebar"><A HREF="login.php">Login</A></P>';
	}
//	echo '<P CLASS="sidebar"><A HREF="readblog.php">readblog test</A></P>';
    echo '<P CLASS="sidebar"><A HREF="notes.php">eebs-notes</A></P>';
   	echo '<P CLASS="sidebar"><A HREF="setup.php">Setup</A></P>';
// moved report to eebs-notes.html
?>
	<!-- End Navbar -->
	</TD>
	<TD WIDTH="80%">
